<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
	//添加解释 测试一版本
        let arr = [1, 6, 9, 7, 4, 5, 44, 11, 451, 454, 55, 141]
        arr.sort(function(a, b) {
            console.log(a, b);
            return a > b ? -1 : 1
        });
        console.log(arr);
    </script>
</body>

</html>